/**
 * 
 */
package com.vision.core.sv.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;

import com.vision.core.cm.db.data.User;

/**
 * @author Mark
 *
 */
public class Session extends org.springframework.security.core.userdetails.User {
	
	private static final long serialVersionUID = 1L;
	
	private User user;
	
	public Session(User user, Collection<? extends GrantedAuthority> authorities) {
		super(user.getUsername(), user.getPassword(), authorities);
		
		this.user = user;
	}
	
	public User getUser() {
		return user;
	}

}
